/*
 * 
 * 
 */
package recognizer;

/**
 *
 * @author Sam Jenkins
 */
public class Sample {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

//        String x = "xyz[](),";
//for(int i = 0;i<x.length();i++){
//        System.out.println(x.charAt(i)+" = "+(int)x.charAt(i));
//}        

        String[] syntax1 = new String[]{"x","      "," ","[x]","(y)","x]","xy","(z))","[(z),y]]"};
        Recognizer recognizer = new Recognizer();
        for (int i = 0; i < syntax1.length; i++) {
            boolean answer = recognizer.isSyntaxValid(syntax1[i]);
            System.out.println("The syntax: " + syntax1[i] + " is " + answer);
        }
    }
}
